/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.psdk.local;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.text.TextUtils;
import com.qihoo.psdk.util.a;
import com.qihoo.psdk.util.h;

public class QLocalNetwork extends BroadcastReceiver {
    private static boolean a = true;

    public void onReceive(Context paramContext, Intent paramIntent) {
        try {
            boolean bool1 = a.e(paramContext);
            h.a("QLocalNetwork", "Network available: " + bool1);
            c.a(180000L);
            if (!(bool1))
                return;
            boolean bool2 = a.g(paramContext);
            h.a("QLocalNetwork", "bWifi: " + bool2);
            if (bool2)
                c.a(300000L);
            if (!(bool2)) {
                String str = a.f(paramContext);
                h.a("QLocalNetwork", "networkType: " + str);
                if ((!(TextUtils.isEmpty(str))) && (str.toLowerCase().endsWith("wap")))
                    c.a(60000L);
            }
            if (!(a)) {
                h.a("QLocalNetwork", "Call triggerRegister, current check period: " + c.b());
                c.a();
                return;
            }
            a = false;
        } catch (Exception localException) {
            h.a("QLocalNetwork", localException);
        }
    }
}